package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePathologySampling;
import com.zhijian.medical.entity.vo.request.RoutinePathologySamplingSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologySamplingVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePathologySamplingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePathologySampling record);

    int insertSelective(RoutinePathologySampling record);

    RoutinePathologySampling selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePathologySampling record);

    int updateByPrimaryKey(RoutinePathologySampling record);

    /**
     * 查询总数
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    int count(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 查询列表
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    List<RoutinePathologySamplingVo> selectList(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 查询单个
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    RoutinePathologySamplingVo selectOne(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologySamplingVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePathologySampling> entities);

    /**
     * 根据SampleId查询列表
     *
     * @param sampleId
     * @return
     */
    List<RoutinePathologySamplingVo> selectListBySampleId(Long sampleId);
}